Skip to content

[tl,dv] Tidy up reset tracking in tl_agent#29638

Open
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:tl-agent-reset-tracking
Open

[tl,dv] Tidy up reset tracking in tl_agent#29638
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:tl-agent-reset-tracking

Conversation

@rswarbrick
Copy link
Copy Markdown
Contributor

The agent config had a reset_asserted variable, which duplicated tl_agent_cfg::in_reset (and the agent was maintaining the value of only one of them).

The driver had its own reset_asserted flag, which it maintained without depending on the monitor. I think the logic for monitoring
resets separately might be that a monitor can be disabled. This is because dv_base_agent has an en_monitor config field which could be false. This was copied from i2c_agent_cfg in 1c553e1 (and I strongly suspect was a stupid hack).

Since tl_agent doesn't look at that flag, let's continue to ignore it. Remove the duplication and just use cfg.in_reset across the board.

The agent config had a reset_asserted variable, which duplicated
tl_agent_cfg::in_reset (and the agent was maintaining the value of
only one of them).

The driver had its own reset_asserted flag, which it maintained
without depending on the monitor. I think the logic for monitoring
resets separately might be that a monitor can be disabled. This is
because dv_base_agent has an en_monitor config field which could be
false. This was copied from i2c_agent_cfg in 1c553e1 (and I
strongly suspect was a stupid hack).

Since tl_agent doesn't look at that flag, let's continue to ignore it.
Remove the duplication and just use cfg.in_reset across the board.

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
@rswarbrick rswarbrick requested a review from a team as a code owner March 31, 2026 12:50
@rswarbrick rswarbrick requested review from marnovandermaas and removed request for a team March 31, 2026 12:50
@rswarbrick rswarbrick added Component:DV DV issue: testbench, test case, etc. IP:tlul labels Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component:DV DV issue: testbench, test case, etc. IP:tlul

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant